Skip to content

Conversation

mbennett2212
Copy link
Contributor

According to the 'JSON Mapping' section in the proto3 Language guide
found here:

https://developers.google.com/protocol-buffers/docs/proto3#json

It is mentioned that NULL repeated fields should be converted to an
empty list.

Currently protobuf2json-c does not convert a NULL repeated field to
JSON (it simply ignores it). This patch updates the library to ensure
that NULL repeated fields are converted to empty JSON lists.

According to the 'JSON Mapping' section in the proto3 Language guide
found here:

https://developers.google.com/protocol-buffers/docs/proto3#json

It is mentioned that NULL repeated fields should be converted to an
empty list.

Currently protobuf2json-c does not convert a NULL repeated field to
JSON (it simply ignores it). This patch updates the library to ensure
that NULL repeated fields are converted to empty JSON lists.
@mbennett2212
Copy link
Contributor Author

Travis CI is failing due to libjansson missing on the build server (unrelated to this PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant